package Demo4;

public class Dog extends Animal implements IRunning{//先继承再实现
    public Dog(String name){
        super(name);
    }
    public void run(){
        System.out.println("狗在跑");
    }
}
